<?php
/**
 * 个人用户使用密码登录接口校验类
 * User: 苏近之
 * Date: 2019-03-24
 * Time: 02:05
 */

namespace app\user\validator;

use app\common\base\ApiValidator;

class PersonLoginPassword extends ApiValidator
{
    protected $rule = [
        'loginAccount' => 'require',
        'password' => 'require|length:6,20',
    ];

    protected $message = [
        'loginAccount' => '用户名必填',
        'password.require' => '密码错误',
        'password.length' => '密码错误',
    ];
}